// token 验证的相关配置
const expressJWT = require('express-jwt');

const jwtAuth = expressJWT({
    secret: 'jiami',
    credentialsRequired: true
}).unless({
    path: ['/users/login', '/users/register']
});

module.exports = jwtAuth;